<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery-3.1.1.js"></script>
</head>
<style>
    *{
        margin: 0 ;
        padding: 0;
    }
    ul{
        width: 400px;
        height: 50px;
        line-height: 50px;
        text-align: center;
        border: 1px gray solid;
        border-bottom: none;
    }
    ul>li {
        list-style-type: none;
        width: 100px;
        height: 50px;
        float: left;
    }
    ul>li>span{
        float: right;
        font-size: 12px;
    }
    ul li.bb{
        border-top: 4px solid red !important;
    }
    ul li.cc{
        border-top: 4px solid white;
    }
    /* ul li span{
        padding: 0 5px;
    } */
    #aa{
        width: 1000px;
        height: 500px;
        border: 1px solid gray;
        box-sizing: border-box;
    }
    #aa img{
        display: none;
    }
    #aa .dis{
        display: block;
    }
    
</style>
<body>
    <ul>
        <li class="bb cc">国际大牌<span>|</span></li>
        <li class="cc">国际大牌<span>|</span></li>
        <li class="cc">国际大牌<span>|</span></li>
        <li class="cc">国际大牌</li>
    </ul>
    <div id="aa">
        <img class="dis" src="./guojidapai.jpg" alt="">
        <img src="./guozhuangmingpin.jpg" alt="">
        <img src="./nanshijingpin.jpg" alt="">
        <img src="./qingjieyongpin.jpg" alt="">
    </div>
</body>
<script>
    $(document).ready(function(){
        $('ul li').mouseover(function(){
            console.log($(this).index())
            $(this).addClass('bb').siblings('li').removeClass('bb');
            $('#aa img').eq($(this).index()).addClass('dis').siblings('img').removeClass('dis')
        })
    })
</script>
</html>
